package xyz.molzhao.alink.base;

import lombok.Getter;

/**
 * @author Molzhao
 * @Description:
 * @date 2022/2/20 15:22
 */
@Getter
public enum ResultEnum {
    SUCCESS("0", "success"),
    ERROR("50001", "error"),
    PARAM_ERROR("50002", "参数异常"),
    FILE_NOT_EXISTS("50003", "文件不存在"),
    DIRECTORY_NOT_EXISTS("50004", "存储路径不存在"),
    UPLOAD_FAILED("50005", "上传文件失败"),
    UPLOAD_OVER_MAX_SIZE("50006", "上传文件超过最大限制"),
    ;
    private String code;

    private String description;

    ResultEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }
}
